nsbase.views = new  function () {


    $(function(){
    	nsbase.global.user.userId = parseInt($("txtUserId").val());
    	$("#userMenum").hover(function(){
    		$(this).find(".select_pop").show();
    	},function(){
    		$(this).find(".select_pop").hide();
    	});

    	$("#navLanguage").find("a").click(function() {
    		var $sender = $(this);
            var param = {
                languageCode:$sender.attr("class")
            }
            nsbase.ajax.request(nsbase.config.actionUrl.index.setLanguage,param,function(result){
                if(result.success){
                    //nsbase.cookie.set(nsbase.consts.languageKey,param.languageCode);
                    window.location.reload();
                }
            });
    	});
    });
}();